import {onMounted, ref} from "vue";
import axios from "axios";

export default function useShowDog(){
    const DogUrl = ref("")
    const ShowDog = async ()=>{
        const result = await axios.get("https://dog.ceo/api/breeds/image/random")
        console.log(result)
        DogUrl.value = result.data.message
    }
    onMounted(async ()=>{
        await ShowDog()
    })
    return {
        DogUrl
    }
}